From 4bf3a867b72eb0ec7f6ff47165d40bacd773c427 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 3 Dec 2018 00:43:29 -0600 Subject: [PATCH] Fix warning in maggeo --- magproto.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magproto.cc b/magproto.cc index 1c4649b0d..07bb385d3 100644 --- a/magproto.cc +++ b/magproto.cc @@ -1362,7 +1362,8 @@ mag_waypt_pr(const Waypoint* waypointp) if (global_opts.smart_icons && waypointp->gc_data->diff && waypointp->gc_data->terr) { - sprintf(ofmtdesc, "%d/%d %s", waypointp->gc_data->diff, + // It's a string and compactness counts, so "1.0" is OK to be "10". + sprintf(ofmtdesc, "%ud/%ud %s", waypointp->gc_data->diff, waypointp->gc_data->terr, CSTRc(odesc)); odesc = mag_cleanse(ofmtdesc); } else { -- 2.30.2